<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition>
        <p:dialog header="Cambiar Clave de Usuario" modal="true" widgetVar="dialogCambiarClave" closable="true" closeOnEscape="true" width="500" height="500"  >
            <h:form id="cambiarClave" >
                <div align="left"><h3><h:outputText value="Ingresar informaci&oacute;n de Clave"/></h3><p:separator/></div>
                <h:panelGrid id="datos" columns="2">

                    <h:outputText value="Antigua Contrase&ntilde;a"/><p:password minLength="1" feedback="false" value="#{cambiarClaveManaged.selectedUsuario.clave_old_u}" />
                    <h:outputText value="Nueva Contrase&ntilde;a"/><p:password minLength="5" maxlength="15" value="#{cambiarClaveManaged.selectedUsuario.clave_u}" feedback="false" />
                    <h:outputText value="Confirmar Nueva Contrase&ntilde;a"/><p:password minLength="1" maxlength="15" value="#{cambiarClaveManaged.selectedUsuario.clave_confirmar_u}" feedback="false" />

                    <h:outputText value=""/>
                    <p:commandButton value="#{sms.modificar}" onclick="cmdConfirm.show()" image="ui-icon ui-icon-check"/>
                </h:panelGrid>
            </h:form>
        </p:dialog>

        <h:form id="dialog">
            <p:confirmDialog message="#{sms.iModificada}" header="#{sms.modificar}" severity="alert" widgetVar="cmdConfirm">
                <p:commandButton value="Si" actionListener="#{cambiarClaveManaged.completeTransaction}" update="mensaje cambiarClave:datos" oncomplete="cmdConfirm.hide()" />
                <p:commandButton value="No" onclick="cmdConfirm.hide()" />
            </p:confirmDialog>
        </h:form>
        <ui:include src="/web-pages/OTROS/wfrmMensaje.xhtml"/>
    </ui:composition>

</html>